
import java.util.logging.*;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author admin-pc
 */
public class FillMainMenuCommand implements Command {

    FillMenu fillMenu = new FillMenu();
    MainMenu mainMenu;

    private static Logger log = Logger.getLogger(FillMainMenuCommand.class.getName());

    public FillMainMenuCommand(FillMenu findMenu) {

        this.fillMenu = fillMenu;
    }

    @Override
    public void execute() {
        try {
            fillMenu.fill();
        }
        catch (Exception e) {
            log.log(Level.SEVERE, "Exception: ", e);
        }
    }

}
